package session;

import java.util.ArrayList;
import java.util.List;

import vo.ArticuloVO;
import vo.CarritoVO;

public class SessionVariables {

	private static SessionVariables instance;
	private String userName;
	private List<ArticuloVO> articulosBusqueda;
	private CarritoVO carrito;
	
	private SessionVariables(){
		articulosBusqueda = new ArrayList<ArticuloVO>();
	}
	
	public static SessionVariables getInstance(){
		if(instance==null){
			instance = new SessionVariables();
		}
		return instance;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public List<ArticuloVO> getArticulosBusqueda() {
		return articulosBusqueda;
	}

	public void setArticulosBusqueda(List<ArticuloVO> articulosBusqueda) {
		this.articulosBusqueda = articulosBusqueda;
	}

	public CarritoVO getCarrito() {
		return carrito;
	}

	public void setCarrito(CarritoVO carrito) {
		this.carrito = carrito;
	}
	
	
}
